Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope events to the execution of the entry point #54090

Merged
merged 2 commits into from
Jun 12, 2021

Conversation

davidfowl
Copy link
Member

@davidfowl davidfowl commented Jun 12, 2021

  • Today we're using the global event source and events that fire in the app domain get captured and this can result in capturing the wrong instances. This fix uses an async local to scope the events for the HostingEventListener to the execution of the application's entry point.
  • Removed the RemoteExecutor as a result of this change.

Fixes dotnet/aspnetcore#33494

PS: This doesn't try to handle multiple instances being created on the same execution context.

- Today we're using the global event source and events that fire in the app domain get captured and this can result in capturing the wrong instances. This fix uses an async local to scope the events for the HostingEventListener to the execution of the application's entry point.
- Removed the RemoteExecutor as a result of this change
@ghost
Copy link

ghost commented Jun 12, 2021

Tagging subscribers to this area: @eerhardt, @maryamariyan
See info in area-owners.md if you want to be subscribed.

Issue Details
  • Today we're using the global event source and events that fire in the app domain get captured and this can result in capturing the wrong instances. This fix uses an async local to scope the events for the HostingEventListener to the execution of the application's entry point.
  • Removed the RemoteExecutor as a result of this change

Fixes dotnet/aspnetcore#33494

Author: davidfowl
Assignees: -
Labels:

area-Extensions-Hosting

Milestone: -

@davidfowl davidfowl merged commit 2a011f8 into main Jun 12, 2021
@jkotas jkotas deleted the davidfowl/hostfactoryresolver-correlation branch June 13, 2021 16:27
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SimpleWithWebApplicationBuilderTests.HelloWorld
2 participants